import request from '@/utils/request'

// 查询积分商品订单列表
export function listOrder(query) {
  return request({
    url: '/qiushi/mall/tradepointorder/list',
    method: 'get',
    params: query
  })
}

// 查询积分商品订单详细
export function getPointOrder(id) {
  return request({
    url: '/qiushi/mall/tradepointorder/' + id,
    method: 'get'
  })
}

// 新增积分商品订单
export function addOrder(data) {
  return request({
    url: '/qiushi/mall/tradepointorder',
    method: 'post',
    data: data
  })
}

// 修改积分商品订单
export function updateOrder(data) {
  return request({
    url: '/qiushi/mall/tradepointorder',
    method: 'put',
    data: data
  })
}

// 删除积分商品订单
export function delOrder(id) {
  return request({
    url: '/qiushi/mall/tradepointorder/' + id,
    method: 'delete'
  })
}
